package com.qcby.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message<T>{
    @Expose
    private String fromName; //发送者名称
    @Expose
    private String text;  //发送的文本
    @Expose
    private String to;
    @Expose
    private List<Object> userList = new ArrayList<>();
    @Expose
    private String type;
    @Expose
    private T data;
    @Expose
    private String fromicon;
    @Expose
    private String toicon;
    @Expose
    private String fileName;
    @Expose
    private Integer fileSize;
    @Expose
    private String fileType;
    @Expose
    private boolean btnShow;
    private Integer page =1;
    private Integer pageSize =75;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
